define(function (require, exports, module) {
    var template = require('../../template/_header.html');
    var EventBus = require('../service/event-bus');

    module.exports = {
        name: 'header',
        template,
        props: ['navs'],
        methods: {
            handleLink(index) {
                var payload = { path: index, params: 1 };
                EventBus.$emit('link-changed', payload);
            }
        }
    }
});